package spring1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpring {

	public static void main(String[] args) {
		// BeanFactory
		ApplicationContext ac = new ClassPathXmlApplicationContext("app*.xml");
		HelloSpring s = (HelloSpring) ac.getBean("h");
		s.sayHi();
	}

}
